Component({
    properties: {
        money: {
            type: null
        },
        buttons: {
            type: null
        },
        balance: {
            type: null
        },
        balanceNow_store: {
            type: null
        }
    },
    data: {
        confirmPayText: "确定",
        radio: "",
        submitArr: ""
    },
    observers: {
        buttons: function(t) {
            var a = this, e = wx.getStorageSync("langIndex");
            this.setData({
                language: e.en
            }), this.setData({
                radio: t[0] && t[0].value ? t[0].value : "",
                submitArr: t[0] && t[0] ? t[0] : ""
            }), t && t.constructor === Array && t.length > 0 && t.map(function(t) {
                54 == t.value && a.setData({
                    confirmPayText: t.name || "确定"
                });
            });
        }
    },
    methods: {
        onClick: function(t) {
            var a = t.currentTarget.dataset.item;
            this.setData({
                radio: a.value,
                submitArr: a
            });
        },
        onChange: function(t) {
            var a = this.data.buttons;
            for (var e in a) t.detail == a[e].value && this.setData({
                radio: a[e].value,
                submitArr: a[e]
            });
        },
        confirm: function(t) {
            this.triggerEvent("isPushHome", {
                radio: this.data.radio,
                submitArr: this.data.submitArr,
                money: this.data.money
            });
        }
    }
});